package com.easy.frame.servers.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easy.frame.base.api.pojo.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 编码定义表
 *
 * @author tp
 * @since 2021-01-05
 */
@Getter
@Setter
@ToString
@TableName("sys_code_def")
@ApiModel("编码定义表")
public class SysCodeDef extends BasePO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("租户ID")
    private Long tenantId;

    @ApiModelProperty("项目ID")
    private Long projectId;

    @ApiModelProperty("分类类型(包括:EQ(设备编码)、MA(物料编码))")
    private String type;

    @ApiModelProperty("分类ID")
    private Long categoryId;

    @ApiModelProperty("分类码模板")
    private String categoryCodeTemplate;

    @ApiModelProperty("实体码模板")
    private String entityCodeTemplate;

    @ApiModelProperty("流水号位数")
    private Integer numberLen;

    @ApiModelProperty("启用状态 [0禁用 1启用]")
    private Integer enabled;

}
